/* ============================================
   RESPONSIVE STYLES - مدیریت هوشمند
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Top Bar */
    .top-bar-info .hidden-mobile {
        display: none;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Header */
    .nav-container {
        height: 70px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }
    
    .typewriter {
        font-size: 1.4rem;
        min-height: 4rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats */
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-desc {
        font-size: 0.6rem;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .section-title p {
        font-size: 0.8rem;
    }
    
    /* Quran Section */
    .quran-section {
        padding: 2rem 0;
    }
    
    .quran-card {
        padding: 1.2rem;
    }
    
    .quran-text {
        font-size: 1rem;
    }
    
    .quran-translation {
        font-size: 0.75rem;
    }
    
    /* Services */
    .services {
        padding: 2rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery {
        padding: 2rem 0;
    }
    
    .gallery-title h2 {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Why Us */
    .why-us {
        padding: 2rem 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-card {
        padding: 1.2rem;
        text-align: center;
    }
    
    .why-icon {
        margin: 0 auto 1rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 2rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 2rem 0;
        margin: 0;
    }
    
    .cta-container {
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.2rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 1rem auto 0;
    }
    
    .footer-links h4 {
        border-right: none;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Honorees */
    .honorees-section {
        padding: 2rem 0;
    }
    
    .honorees-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .honoree-link {
        max-width: 100%;
    }
    
    .honoree-image img {
        height: 250px;
    }
    
    /* Scroll Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }
    
    /* Chatbot */
    .chatbot-button-farz {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .typewriter {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .quran-text {
        font-size: 0.85rem;
    }
    
    .chatbot-panel-farz {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        height: 450px;
        bottom: 70px;
    }
}

/* Landscape Mode */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .typewriter {
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .mobile-menu {
        overflow-y: auto;
        max-height: 100vh;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .mobile-toggle,
    .header-actions,
    .hero-buttons,
    .chatbot-button-farz,
    .chatbot-panel-farz,
    .scroll-top,
    .footer,
    .gallery,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .stat-card,
    .service-card,
    .why-card,
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}